Skip to content

[♻️ Refactor] 체험등록 날짜 -1 수정#206

Closed
didwjdgns99 wants to merge 3 commits intomainfrom
Refactor/date
Closed

[♻️ Refactor] 체험등록 날짜 -1 수정#206
didwjdgns99 wants to merge 3 commits intomainfrom
Refactor/date

Conversation

@didwjdgns99
Copy link
Collaborator

✅ PR 체크리스트

1. 코드 & 기능

  • 기능 정상 동작
  • 콘솔 에러 없음

🔗 이슈 번호

  • close #이슈번호

🎯 작업한 내용

💡 리뷰 요청 / 코멘트

🫧 참고사항

📸 스크린샷 (선택사항)

@didwjdgns99 didwjdgns99 self-assigned this Jan 18, 2026
@vercel
Copy link

vercel bot commented Jan 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
global-nomad-team6 Error Error Jan 18, 2026 6:31am

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @didwjdgns99, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 활동 등록 기능에서 날짜가 잘못 처리되던 버그를 수정하고, 이미지 업로드 컴포넌트의 사용자 인터페이스를 개선합니다. 특히, toISOString() 사용으로 인해 발생하던 날짜 오차 문제를 해결하여 데이터의 정확성을 보장하고, 이미지 로딩 실패 시 표시되는 아이콘을 더 적절한 것으로 변경하여 UI의 명확성을 높였습니다.

Highlights

  • 날짜 형식 수정: 활동 등록 시 날짜 처리 로직에서 toISOString() 사용으로 인해 발생할 수 있는 날짜 오차 문제를 해결했습니다. 이제 CreateActivityPage.tsx에서 날짜를 로컬 시간대를 기준으로 YYYY-MM-DD 형식으로 직접 구성하여 서버에 전송합니다.
  • 폴백 이미지 아이콘 추가 및 적용: 이미지 업로드 컴포넌트에서 사용할 새로운 FallbackImage SVG 아이콘을 추가했습니다. 기존에 이미지 업로드 버튼에 잘못 사용되던 PasswordHidden 아이콘을 새로 추가된 FallbackImage로 교체하여 시각적 일관성과 의미론적 정확성을 높였습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이 PR은 타임존 차이로 인해 발생하던 날짜 포맷팅 관련 중요 버그를 올바르게 수정했습니다. 또한, 이미지 업로드 UI에 더 적절한 아이콘을 사용하여 사용자 경험을 개선했습니다. 제 리뷰에는 코드 품질과 유지보수성을 향상시키기 위해 사용하지 않는 import를 제거하고, 날짜 포맷팅 로직을 리포지토리 가이드라인에 따라 재사용 가능한 유틸리티 함수로 리팩토링하는 제안이 포함되어 있습니다.

@@ -1,4 +1,4 @@
import { Delete, PasswordHidden } from '@/assets/icons';
import { Delete, FallbackImage, PasswordHidden } from '@/assets/icons';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

FallbackImage 아이콘으로 대체되면서 PasswordHidden 아이콘이 더 이상 사용되지 않습니다. import 문에서 제거하여 코드를 더 깔끔하게 유지하는 것이 좋습니다.

Suggested change
import { Delete, FallbackImage, PasswordHidden } from '@/assets/icons';
import { Delete, FallbackImage } from '@/assets/icons';

Comment on lines +82 to +94
const schedules = values.rows.map((row) => {
const d = row.date;

const yyyy = d.getFullYear();
const mm = String(d.getMonth() + 1).padStart(2, '0');
const dd = String(d.getDate()).padStart(2, '0');

return {
date: `${yyyy}-${mm}-${dd}`, // ✅ 로컬 기준 날짜
startTime: row.startTime,
endTime: row.endTime,
};
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

날짜를 YYYY-MM-DD 형식으로 포맷하는 로직은 타임존 문제를 해결하는 올바른 수정입니다. 하지만 이 로직은 여러 곳에서 사용될 수 있으므로 유틸리티 함수로 추출하는 것을 고려해보세요. 리포지토리의 일반 규칙에 따르면, 순수 헬퍼 함수는 재사용성과 유지보수성을 높이기 위해 별도의 유틸리티 파일(예: utils/dateUtils.ts)에 두는 것이 좋습니다. 예를 들어, formatDateToYyyyMmDd(date: Date)와 같은 함수를 만들 수 있습니다. 또한, ActivityForm.tsx 파일에서도 비슷한 날짜 포맷 로직(toISOString().split('T')[0])이 사용되고 있는데, 이 역시 동일한 타임존 버그를 가질 수 있습니다. 공통 유틸리티 함수를 사용하면 이런 문제를 일관되게 해결하고 코드를 중앙에서 관리할 수 있습니다.

References
  1. Pure helper functions that do not depend on component state or props should be defined outside the component scope. For better organization and reusability, place them in a dedicated utility file (e.g., utils/timeUtils.ts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant